package May;

public class test_30_2 {
    public static void main(String[] args){
        //面试题
        int i = 1;
        i = i++;
        System.out.println("i = " + i);//1
        //规则使用临时变量
        //(1)i = temp(临时变量)
        //(2)i = i + 1; 等于2
        //(3)i = temp; 等于1
        int a = 1;
        a = ++a;
        System.out.println("a = " + a);//2
        //规则使用临时变量
        //i = i + 1; 等于2
        //temp = i;
        //i = temp;
    }
}
